﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class TooltipForm : Form
    {
        private static string DEFAULT_MESSAGE = "正在加载，请稍候……";
        private string _message = "";

        public TooltipForm()
        {
            InitializeComponent();
        }

        public TooltipForm(string message)
            : this()
        {
            _message = message;
        }

        private void TooltipForm_Load(object sender, EventArgs e)
        {
            this.SetMessage();
        }

        private void SetMessage()
        {
            if (_message.Trim().Equals(string.Empty))
                _message = DEFAULT_MESSAGE;

            lblMessage.Text = _message;
        }

    }
}
